styleproperty: Simplify code
authorBenjamin Otte <otte@redhat.com>
Sat, 7 Jan 2012 15:35:40 +0000 (16:35 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 9 Jan 2012 17:37:59 +0000 (18:37 +0100)
Merge 1-line function into only caller

gtk/gtkcssstyleproperty.c

index da1a6b708cf6e2168bd1745f49121ebffeb950cf..70d88a721a7072aff8d70aaf774bed907af80288 100644 (file)
@@ -115,15 +115,6 @@ _gtk_css_style_property_assign (GtkStyleProperty   *property,
                                                   value);
 }
 
-static void
-_gtk_style_property_default_value (GtkStyleProperty   *property,
-                                   GtkStyleProperties *properties,
-                                   GtkStateFlags       state,
-                                   GValue             *value)
-{
-  g_value_copy (_gtk_css_style_property_get_initial_value (GTK_CSS_STYLE_PROPERTY (property)), value);
-}
-
 static void
 _gtk_css_style_property_query (GtkStyleProperty   *property,
                                GtkStyleProperties *props,
@@ -165,7 +156,7 @@ _gtk_css_style_property_query (GtkStyleProperty   *property,
         g_value_copy (val, value);
     }
   else
-    _gtk_style_property_default_value (property, props, state, value);
+    g_value_copy (_gtk_css_style_property_get_initial_value (GTK_CSS_STYLE_PROPERTY (property)), value);
 }
 
 static gboolean